<ngs-panel [option]="panelOption">
    <!-- 基本信息 -->
    <ngs-block [option]="baseBlock">
        <ngs-form [option]="formOption" #myForm></ngs-form>
    </ngs-block>

    <!-- 权限code -->
    <ngs-block [option]="permBlock">
        <div style="padding: 24px">
            <nz-checkbox-wrapper style="width: 100%;" (nzOnChange)="log($event)">
                <div *ngFor="let obj of rbacPermList,let i = index">
                    <label nz-checkbox [nzValue]="obj.id" [ngModel]="check(obj.id)">{{obj.name}}</label>
                    <div style="margin-left: 48px;">
                        <span *ngFor="let eve of obj.children,let i = index" style="display: flex;justify-content: left;flex-wrap:wrap">
                            <div style="width: 100%;">
                                <label nz-checkbox [nzValue]="eve.id" [ngModel]="check(eve.id)">{{eve.name}}</label>
                            </div>
                            
                            <div style="margin-left: 48px">
                                <span *ngFor="let ob of eve.children,let i = index">
                                    <label nz-checkbox [nzValue]="ob.id" [ngModel]="check(ob.id)">{{ob.name}}</label>
                                </span>
                            </div>
                        </span>
                    </div>
                </div>
                

            </nz-checkbox-wrapper>
        </div>
    </ngs-block>

</ngs-panel>